//
//  Utilities.h
//  eticket
//
//  Created by AnhQuocNguyen on 4/8/13.
//  Copyright (c) 2013 SoinMedia. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Reachability.h"
@interface Utilities : NSObject{
    
    
}

///////////////////////////////////////////////////////////////////////////////////
/* Validation */
+ (NSString *)trimString:(NSString *)str;

+ (BOOL)isEmptyString:(NSString *)str;

+ (BOOL)isValidEmail:(NSString *)str;

+ (BOOL)isPasswordRight:(NSString *)str;

+ (BOOL)haveEmoji:(NSString *)str;

+ (NSString*)removeEmoji:(NSString *)str;

+ (BOOL)isDeviceFourInches;

+ (NSString *)stringByStrippingHTML:(NSString *)htmlString;

///////////////////////////////////////////////////////////////////////////////////
//Resize image
+ (CGSize)getNewSizeForImage:(UIImage *)Original withMaxSize:(int)maxSize;
+ (UIImage *)resizeImage:(UIImage *)image withSize:(CGSize)newSize;


///////////////////////////////////////////////////////////////////////////////////
//Check Network
+ (BOOL)isConnectionAvailable;
@end
